import request from '@/utils/request'

// 查询法律咨询列表
export function listLegaladvicecollect(query) {
  return request({
    url: '/member/legaladvicecollect/list',
    method: 'get',
    params: query
  })
}

// 查询法律咨询详细
export function getLegaladvicecollect(id) {
  return request({
    url: '/member/legaladvicecollect/' + id,
    method: 'get'
  })
}

// 新增法律咨询
export function addLegaladvicecollect(data) {
  return request({
    url: '/member/legaladvicecollect',
    method: 'post',
    data: data
  })
}

// 修改法律咨询
export function updateLegaladvicecollect(data) {
  return request({
    url: '/member/legaladvicecollect',
    method: 'put',
    data: data
  })
}

// 删除法律咨询
export function delLegaladvicecollect(id) {
  return request({
    url: '/member/legaladvicecollect/' + id,
    method: 'delete'
  })
}

// 导出法律咨询
export function exportLegaladvicecollect(query) {
  return request({
    url: '/member/legaladvicecollect/export',
    method: 'get',
    params: query
  })
}